<template>
	<u-loadmore :status="status" :loading-text="loadingText" :loadmore-text="loadmoreText" :nomore-text="nomoreText"
		@loadmore='handelLoadmore()' />
</template>

<script>
	export default {
		data() {
			return {
				// status: 'loadmore', // nomore loading
				loadingText: '努力加载中',
				loadmoreText: '点击加载更多',
				nomoreText: '没有更多了'
			}
		},
		props: {
			status: {
				type: String,
				default: 'loadmore'
			},
			// count: {
			// 	type: Number,
			// 	required: true
			// },
			// listLength: {
			// 	type: Number,
			// 	required: true
			// }
		},
		methods: {
			//组件被点击的时候
			handelLoadmore() {
				this.$emit('changeStatus')
				this.$emit('refreshList')
			},
		}
	}
</script>